package com.xuy.ridis.redisdemo.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.lang.String;

/**
 * @version v1.0
 * @类描述：
 * @项目名称：
 * @包名： com.xuy.ridis.redisdemo.config
 * @类名称：JedisConfig
 * @创建人：YIHANG.XU
 * @创建时间：2021/10/172:09 下午
 * @修改人：YIHANG.XU
 * @修改时间：2021/10/172:09 下午
 * @修改备注：
 * @Copyright
 */
@Data
@Component
@ConfigurationProperties(prefix = "xyh.jedis")
public class JedisConfig {

    private String username;
    private String passwored;
    private int port;
    private int timeOut;
    private String host;
    private int maxLib;
    private int maxTotal;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPasswored() {
        return passwored;
    }

    public void setPasswored(String passwored) {
        this.passwored = passwored;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public int getTimeOut() {
        return timeOut;
    }

    public void setTimeOut(int timeOut) {
        this.timeOut = timeOut;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getMaxLib() {
        return maxLib;
    }

    public void setMaxLib(int maxLib) {
        this.maxLib = maxLib;
    }

    public int getMaxTotal() {
        return maxTotal;
    }

    public void setMaxTotal(int maxTotal) {
        this.maxTotal = maxTotal;
    }
}
